package com.ruoyi.ruoyiyinzheng.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 设备业务对象
 *
 * @author ruoyi
 * @date 2023-09-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class StDeviceBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 分类
     */
    @NotNull(message = "分类不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long categoryId;

    /**
     * 设备名称
     */
    @NotBlank(message = "设备名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 设备编号
     */
    @NotBlank(message = "设备编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 设备状态
     */
    @NotBlank(message = "设备状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String state;

    /**
     * 设备厂商
     */
    @NotBlank(message = "设备厂商不能为空", groups = { AddGroup.class, EditGroup.class })
    private String factory;

    /**
     * 设备型号
     */
    @NotBlank(message = "设备型号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String model;

    /**
     * 启用
     */
    @NotBlank(message = "启用不能为空", groups = { AddGroup.class, EditGroup.class })
    private String enable;


}
